<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="shortcut icon" type="image/x-icon" href="https://unpkg.byted-static.com/latest/byted/arco-config/assets/favicon.ico">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="Permissions-Policy" content="clipboard-write=(self 'https://fuwu.habitat.cn/' 'https://nfc.nanshekeji.com/')">
    <title>后台管理</title>
    <script>
      function queryURLInitParams(URL = ''){
        const newUrl  = encodeURI(URL || window.location.href).replace(/\+/g,'%2B')
        let url = newUrl.split("?")[1];
        const urlSearchParams = new URLSearchParams(url);
        const params = Object.fromEntries(urlSearchParams.entries());
        return params
      }
      const params = queryURLInitParams()
      params.token && localStorage.setItem("token",  params.token)
     </script>
     <script>
        window.addEventListener("message", (row) => {
          const { token, userInfo} = row.data
          token && localStorage.setItem("token", token)
          userInfo && localStorage.setItem("userInfo", userInfo)
      });
      </script>
    <style>
      #saas-service {
        height: 100%;
        width: 100%;
      }
    </style>
  </head>
  <body>
    <div id="saas-service"></div>
    
    <script type="module" src="/src/main.ts"></script>
  </body>
</html>
